home *** CD-ROM | disk | FTP | other *** search
- Path: news.NetVision.net.il!news
- From: "Poul A. Costinsky" <PoulACost@msn.com>
- Newsgroups: comp.lang.c++
- Subject: Friend template function?
- Date: Thu, 21 Mar 1996 16:21:37 +0200
- Organization: NetVision LTD.
- Message-ID: <315165F1.37D4@msn.com>
- NNTP-Posting-Host: 194.90.116.11
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- How can I define a template function to be a friend of a class?
- I have:
-
- class A
- {
- //.....
- friend template<class TYPE> void Foo(TYPE& t);
- };
- My VC++ 4.0 complains:
- error C2059: syntax error : 'template'
- Is it MS-specific or a standart prohibites it
- (sorry for ignorance -:(( ) ?
-
- --
- Thanx,
- Poul.
- ("`-''-/").___..--''"`-._ ~~~~~~~~~~Poul A. Costinsky~~~~~~~~~~
- (`6_ 6 ) `-. ( ).`-.__.`) PoulACost@msn.com
- (_Y_.)' ._ ) `._ `. ``-..-'
- _..`--'_..-_/ /--'_.' ,'
- (il).-'' (li).' ((!.-
-